package org.fanximall.erp.system.infrastructure.convert;

import org.fanximall.erp.system.domain.aggregate.UserAggregate;
import org.fanximall.erp.system.infrastructure.dao.entity.SysUserDO;
import org.mapstruct.Mapper;

/**
 * @author :  william
 * @version :  V1.0  created in 2024/4/22
 */
@Mapper(componentModel = "spring")
public interface UserConverter {

    /**
     * 用户DO 转为entity
     * @param userDO
     * @return
     */
    UserAggregate toUserAggregate(SysUserDO userDO);
}
